package com.woniuxy.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 考核项
 * </p>
 *
 * @author woniuxy
 * @since 2022-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AssessmentItems对象", description="考核项")
public class AssessmentItems implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "部门id")
    private String departmentId;

    @ApiModelProperty(value = "考核项名称")
    private String name;

    @ApiModelProperty(value = "计量单位")
    private String unit;

    @ApiModelProperty(value = "指标值")
    private Integer value;

    @ApiModelProperty(value = "权重")
    private Double weight;

    @ApiModelProperty(value = "考核周期表id")
    private String cycleId;

    @ApiModelProperty(value = "考核方法")
    private String method;

    @ApiModelProperty(value = "数据来源id")
    private Integer datafromId;

    @ApiModelProperty(value = "操作记录id")
    private Long recordId;

    @TableField(exist = false)
    @ApiModelProperty(value = "部门信息")
    PerformanceDepartment performanceDepartment;

    @TableField(exist = false)
    private PerformanceUser performanceUser;

    @TableField(exist = false)
    AssessmentCycle assessmentCycle;

    @TableField(exist = false)
    private DataRecord dataRecord;

}
